package com.wei.tang.widget.banner;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;

/**
 * Created by Sai on 15/8/4. 本地图片Holder例子
 */
public class LocalImageHolderView implements Holder<Integer> {
	private ImageView imageView;

	@Override
	public View createView(Context context) {
		imageView = new ImageView(context);
		imageView.setScaleType(ImageView.ScaleType.FIT_XY);
		return imageView;
	}

	@Override
	public void UpdateUI(Context context, int position, Integer data) {
		imageView.setImageResource(data);
	}
}
